<?php get_header(); ?>
				<div class="main-left cutecol3">
					<div class="mainInner-data">
	<?php
	$homeCategory = array(1,2);
	foreach($homeCategory as $category){
		$cateInfo = get_category( $category );
		$postByCate = new WP_Query(array('cat' => $category, 'posts_per_page' => 4));
		$totalPost = $postByCate->post_count;
	?>  	
	<div class="boxContent hatom-feed">
	<h2 class="rs iSprite">
	<span><img src="<?php bloginfo('template_directory'); ?>/resources/null_002.gif" class="iSprite news"><?php echo $cateInfo->name ?></span>
	<a href="<?php echo get_category_link( $cateInfo->term_id ) ?>" class="ViewMore iSprite" title="Xem thêm">Xem thêm</a></h2>
<div class="boxNew hatom-entry iSprite">
			<?php $i = 1;?>
			<?php $paddingLeft=''; ?>
			<?php while ($postByCate->have_posts()) : $postByCate->the_post(); ?>
			<?php $thumbnail = get_post_meta($post->ID, 'image', true); ?>
			<?php if($i == 1): ?>
			<h3 class="rs">
				<a class="entry-title" href="<?php the_permalink() ?>" title="Update phiên bản mới ngày 08/03"><span class="tt_prefix">TT </span><?php echo the_title(); ?></a>
				<span class="datePost">
					<span class="aidanews2_date"><span class="aidanews2_date">07/03/2013</span></span>
				</span>
			</h3>
			<?php if($thumbnail == ''){$paddingLeft = 'style="padding-left:0px !important"';}else{$paddingLeft='';} ?>
			<div class="boxNewData" <?php echo $paddingLeft ?>>
				<?php if($thumbnail != ''){ ?>
				<a class="newThumbZone" href="<?php the_permalink() ?>" title="<?php echo the_title(); ?>">
					<img class="newThumb" src="<?php echo $thumbnail ?>" alt="" abc="quanimg" height="55" width="98">
				</a>
				<?php } ?>
				<div class="newDataContent entry-content">
					<span class="aidanews2_text"><?php echo get_the_excerpt() ?></span>
				</div><!--//newDataContent-->
			</div><!--//boxNewData-->
			<?php else: ?>
			<?php if($i == 2):?>
			<div class="otherNew">
				<ul class="lstOtherNew rs">
			<?php endif; ?>	
					<li><a href="<?php the_permalink() ?>" title="<?php echo the_title(); ?>"><span class="tt_prefix">TT </span><?php echo the_title(); ?></a><span class="datePost"><span class="aidanews2_date"><span class="aidanews2_date"><?php the_time('d/m/Y'); ?></span></span></span></li>
			<?php if($i == $totalPost):?>
				</ul>
			</div>
			<?php endif; ?>	
			<?php endif; ?>
				<?php $i++; ?>
			<?php endwhile; ?>
			
					</div><!--//hatom-feed-->

					</div><!--//boxTin Tức-->
		<?php }//end foreach ?>
 
						<div class="boxFacebook"><!--Box Facebook-->
							<h2 class="rs iSprite"></h2>
							<div class="cf">
							 <iframe src="<?php bloginfo('template_directory'); ?>/resources/likebox.htm" style="border:none; overflow:hidden; width:420px; height:140px;" allowtransparency="true" frameborder="0" scrolling="no"></iframe>
							</div>
						</div><!--//Box Facebook-->
						<!--//Box Facebook-->
					</div>
				</div>
				
				<?php get_footer(); ?>